<template>
  <BvView>
    <BvHeader :center-control="{
      title:`首页`
    }"></BvHeader>
    <button>首页</button>
    <router-link to="/home/details">详情</router-link>

    <goods-item @toItemPath="toDetailsPath"></goods-item>

  </BvView>
</template>

<script>
  export default {
    name: "home",
    mounted(){
      this.$axios.post(`/mock/data1`, {
        data: 1
      });
    },
    methods:{
      toDetailsPath(id){
        this.$router.push({path:'/home/details',query:{id}});
      }
    }
  }
</script>

<style scoped>

</style>
